/**
 * 
 */
package com.p2p.user;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.p2p.user.facade.UserQueryFacade;
import com.p2p.user.result.UserQueryResult;

/**
 * @author ruiqi
 *
 */
public class userClientTeset {
	public static void main(String[] args) {
		ApplicationContext ctx=new ClassPathXmlApplicationContext(new String[]{"spring/userClient-beans.xml"});
	    
		UserQueryFacade userQueryFacade = (UserQueryFacade)ctx.getBean("remoteUserQueryFacade");

		UserQueryResult result = userQueryFacade.getUserInfoById("1000000051");
		
		System.out.println(result.isSuccess());
		
	}
}
